var Equitment1= Window03.extend({
	beaker1:null,
	beaker2:null,
	beaker3:null,
	beaker4:null,
	beaker5:null,
	beaker6:null,
	beaker7:null,
	beaker8:null,
	beaker9:null,
	beaker10:null,
	vessel:null,
	vessel1:null,
	bottle:null,
	flow:null,
	parent:null,
	status:true,
	runningAction:null,
	ctor:function (parent,flow, tag) {
		this._super(parent,flow, tag);
		this.flow=flow;
		this.parent=parent;
		
		var fontDef = new cc.FontDefinition();
		fontDef.fontName = "Arial";
		fontDef.fontSize = "8";
		fontDef.fillStyle=cc.color(0, 0, 0,255);
		
		this.beaker5=new Button03(this.rootNode,3,TAG_ITEM_BEAKER_5,
				"#equitment/beaker.png",this.eventMenuCallback,this);
		this.beaker5.setPosition(gg.c_width*0.6,gg.c_height*1.3);
		this.label5=new Button03(this.beaker5,10,TAG_ITEM_BEAKER_5,"#equitment/label5.png",this.eventMenuCallback,this);
		this.label5.setPosition(cc.p(this.beaker5.width*0.5,this.beaker5.height*0.2));
		this.label5_1=new cc.LabelTTF("待测液4",fontDef);
		this.rootNode.addChild(this.label5_1,1);
		this.label5_1.setPosition(cc.p(gg.c_width*0.6,gg.c_height*1.05));
		
		this.beaker4=new Button03(this.rootNode,3,TAG_ITEM_BEAKER_4,
				"#equitment/beaker.png",this.eventMenuCallback,this);
		this.beaker4.setPosition(gg.c_width*0.75,gg.c_height*1.3);
		this.label4=new Button03(this.beaker4,10,TAG_ITEM_BEAKER_4,"#equitment/label4.png",this.eventMenuCallback,this);
		this.label4.setPosition(cc.p(this.beaker4.width*0.5,this.beaker4.height*0.2));
		this.label4_1=new cc.LabelTTF("待测液3",fontDef);
		this.rootNode.addChild(this.label4_1,1);
		this.label4_1.setPosition(cc.p(gg.c_width*0.75,gg.c_height*1.05));
		
		this.beaker3=new Button03(this.rootNode,3,TAG_ITEM_BEAKER_3,
				"#equitment/beaker.png",this.eventMenuCallback,this);
		this.beaker3.setPosition(gg.c_width*0.9,gg.c_height*1.3);
		this.label3=new Button03(this.beaker3,10,TAG_ITEM_BEAKER_3,"#equitment/label3.png",this.eventMenuCallback,this);
		this.label3.setPosition(cc.p(this.beaker3.width*0.5,this.beaker3.height*0.2));
		this.label3_1=new cc.LabelTTF("待测液2",fontDef);
		this.rootNode.addChild(this.label3_1,1);
		this.label3_1.setPosition(cc.p(gg.c_width*0.9,gg.c_height*1.05));
		
		this.beaker2=new Button03(this.rootNode,3,TAG_ITEM_BEAKER_2,
				"#equitment/beaker.png",this.eventMenuCallback,this);
		this.beaker2.setPosition(gg.c_width*1.05,gg.c_height*1.3);
		this.label2=new Button03(this.beaker2,10,TAG_ITEM_BEAKER_2,"#equitment/label2.png",this.eventMenuCallback,this);
		this.label2.setPosition(cc.p(this.beaker2.width*0.5,this.beaker2.height*0.2));
		this.label2_1=new cc.LabelTTF("待测液1",fontDef);
		this.rootNode.addChild(this.label2_1,1);
		this.label2_1.setPosition(cc.p(gg.c_width*1.05,gg.c_height*1.05));
		
		this.beaker1=new Button03(this.rootNode,3,TAG_ITEM_BEAKER_1,
				"#equitment/beaker.png",this.eventMenuCallback,this);
		this.beaker1.setPosition(gg.c_width*1.2,gg.c_height*1.3);
		this.label1=new Button03(this.beaker1,10,TAG_ITEM_BEAKER_1,"#equitment/label1.png",this.eventMenuCallback,this);
		this.label1.setPosition(cc.p(this.beaker1.width*0.5,this.beaker1.height*0.2));
		this.label1_1=new cc.LabelTTF("蒸馏水",fontDef);
		this.rootNode.addChild(this.label1_1,1);
		this.label1_1.setPosition(cc.p(gg.c_width*1.2,gg.c_height*1.05));
		
		this.beaker6=new Button03(this.rootNode,3,TAG_ITEM_BEAKER_6,
				"#equitment/beaker.png",this.eventMenuCallback,this);
		this.beaker6.setPosition(gg.c_width*0.6,gg.c_height*0.8);
		this.label6=new Button03(this.beaker6,10,TAG_ITEM_BEAKER_6,"#equitment/label6.png",this.eventMenuCallback,this);
		this.label6.setPosition(cc.p(this.beaker6.width*0.5,this.beaker6.height*0.2));
		this.label6_1=new cc.LabelTTF("待测液5",fontDef);
		this.rootNode.addChild(this.label6_1,1);
		this.label6_1.setPosition(cc.p(gg.c_width*0.6,gg.c_height*0.55));
		
		this.beaker7=new Button03(this.rootNode,3,TAG_ITEM_BEAKER_7,
				"#equitment/beaker.png",this.eventMenuCallback,this);
		this.beaker7.setPosition(gg.c_width*0.75,gg.c_height*0.8);
		this.label7=new Button03(this.beaker7,10,TAG_ITEM_BEAKER_7,"#equitment/label7.png",this.eventMenuCallback,this);
		this.label7.setPosition(cc.p(this.beaker7.width*0.5,this.beaker7.height*0.2));
		this.label7_1=new cc.LabelTTF("待测液6",fontDef);
		this.rootNode.addChild(this.label7_1,1);
		this.label7_1.setPosition(cc.p(gg.c_width*0.75,gg.c_height*0.55));
		
		this.beaker8=new Button03(this.rootNode,3,TAG_ITEM_BEAKER_8,
				"#equitment/beaker.png",this.eventMenuCallback,this);
		this.beaker8.setPosition(gg.c_width*0.9,gg.c_height*0.8);
		this.label8=new Button03(this.beaker8,10,TAG_ITEM_BEAKER_8,"#equitment/label8.png",this.eventMenuCallback,this);
		this.label8.setPosition(cc.p(this.beaker8.width*0.5,this.beaker8.height*0.2));
		this.label8_1=new cc.LabelTTF("待测液7",fontDef);
		this.rootNode.addChild(this.label8_1,1);
		this.label8_1.setPosition(cc.p(gg.c_width*0.9,gg.c_height*0.55));
		
		this.beaker9=new Button03(this.rootNode,2,TAG_ITEM_BEAKER_9,
				"#equitment/beaker.png",this.eventMenuCallback,this);
		this.beaker9.setPosition(gg.c_width*1.05,gg.c_height*0.8);
		this.label9=new Button03(this.beaker9,10,TAG_ITEM_BEAKER_9,"#equitment/label9.png",this.eventMenuCallback,this);
		this.label9.setPosition(cc.p(this.beaker9.width*0.5,this.beaker9.height*0.2));
		this.label9_1=new cc.LabelTTF("待测液8",fontDef);
		this.rootNode.addChild(this.label9_1,1);
		this.label9_1.setPosition(cc.p(gg.c_width*1.05,gg.c_height*0.55));
		
		this.beaker10=new Button03(this.rootNode,2,TAG_ITEM_BEAKER_10,
				"#equitment/beaker.png",this.eventMenuCallback,this);
		this.beaker10.setPosition(gg.c_width*1.2,gg.c_height*0.8);
		this.label10=new Button03(this.beaker10,10,TAG_ITEM_BEAKER_10,"#equitment/label10.png",this.eventMenuCallback,this);
		this.label10.setPosition(cc.p(this.beaker10.width*0.5,this.beaker10.height*0.2));
		this.label10_1=new cc.LabelTTF("待测液9",fontDef);
		this.rootNode.addChild(this.label10_1,1);
		this.label10_1.setPosition(cc.p(gg.c_width*1.2,gg.c_height*0.55));
		
		this.vessel=new Button03(this.rootNode,2,TAG_ITEM_VESSEL,
				"#equitment/vessel_2.png",this.eventMenuCallback,this);
		this.vessel.setPosition(gg.c_width*1.4, gg.c_height*1.3);

		this.bottle=new Button03(this.rootNode,2,TAG_ITEM_BOTTLE1,
				"#equitment/bottle.png",this.eventMenuCallback,this);
		this.bottle.setPosition(gg.c_width*1.4, gg.c_height*0.8);

		this.vessel1=new Button03(this.rootNode,2,TAG_ITEM_VESSEL7,
				"#equitment/vessel2.png",this.eventMenuCallback,this);
		this.vessel1.setPosition(gg.c_width*1.12, gg.c_height*0.5);
		this.vessel1.setVisible(true);
		this.line=new Button03(this.vessel1,3,TAG_ITEM_LINE,
				"#equitment/line.png",this.eventMenuCallback,this);
		this.line.setPosition(this.vessel1.width*0.5,this.vessel1.height*0.15);
		
		this.vessel2=new Button03(this.rootNode,2,TAG_ITEM_VESSEL8,
				"#equitment/vessel2.png",this.eventMenuCallback,this);
		this.vessel2.setPosition(gg.c_width*1.25, gg.c_height*0.5);
		this.vessel2.setVisible(true);
		this.line1=new Button03(this.vessel2,3,TAG_ITEM_LINE1,
				"#equitment/line.png",this.eventMenuCallback,this);
		this.line1.setPosition(this.vessel2.width*0.5,this.vessel2.height*0.15);
		
		this.initAction();
		this.initAction1();
	},
	initAction:function(){
		var animFrames=[];
		for(var i=1;i<7;i++){
			var str="equitment/beaker"+i+".png";
			var frame=cc.spriteFrameCache.getSpriteFrame(str);
			animFrames.push(frame);
		}
		var animation=new cc.Animation(animFrames,0.1)
		this.runningAction=cc.repeat(cc.animate(animation),1);
		this.runningAction.retain();
	},
	initAction1:function(){
		var animFrames=[];
		for(var i=1;i<9;i++){
			var str="equitment/vesselaction_"+i+".png";
			var frame=cc.spriteFrameCache.getSpriteFrame(str);
			animFrames.push(frame);
		}
		var animation=new cc.Animation(animFrames,0.15)
		this.runningAction1=cc.repeat(cc.animate(animation),1);
		this.runningAction1.retain();
	},
	eventMenuCallback:function(pSender){
		if(!this.flow.checkTag(pSender.getTag())){
			// 是否可以触发
			_.error();
			ll.tip.mdScore(-3);
			return;
		} else {
			if(this.status==true){
				_.clever();
				ll.tip.mdScore(10);
			}
		}
		var action = this.flow.flow.action;
		var func = cc.callFunc(this.close, this);
		var func1=cc.callFunc(this.checkActionDone,this);
		var func2=cc.callFunc(function(){
			this.flow.next();
			this.status=true;
		},this);
		switch (pSender.getTag()) {
		case TAG_ITEM_BEAKER_1:
			if(this.status===true){
				this.status=false;
				if(action==ACTION_DO1){
					this.rock(func1,pSender,null,func2);
				}else if(action==ACTION_DO2){
					this.pour3(func1,pSender,func,func2);
				}
			}
			break;
		case TAG_ITEM_BEAKER_2:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.rock(func1,pSender,null,func2);
				}else if(action==ACTION_DO2){
					this.pour3(func1,pSender,func,func2);
				}else if(action==ACTION_DO3){
					this.pour3(func1,pSender,null,func2);
				}
			}
			break;
		case TAG_ITEM_BEAKER_3:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.rock(func1,pSender,null,func2);
				}else if(action==ACTION_DO2){
					this.pour3(func1,pSender,func,func2);
				}else if(action==ACTION_DO3){
					this.pour3(func1,pSender,null,func2);
				}
			}
			break;
		case TAG_ITEM_BEAKER_4:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.rock(func1,pSender,null,func2);
				}else if(action==ACTION_DO2){
					this.pour3(func1,pSender,func,func2);
				}else if(action==ACTION_DO3){
					this.pour3(func1,pSender,null,func2);
				}
			}
			break;
		case TAG_ITEM_BEAKER_5:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.rock(func1,pSender,null,func2);
				}else if(action==ACTION_DO2){
					this.pour3(func1,pSender,func,func2);
				}else if(action==ACTION_DO3){
					this.pour3(func1,pSender,null,func2);
				}
			}
			break;
		case TAG_ITEM_BEAKER_6:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.rock1(func1,pSender,null,func2);
				}else if(action==ACTION_DO2){
					this.pour3(func1,pSender,func,func2);
				}else if(action==ACTION_DO3){
					this.pour3(func1,pSender,null,func2);
				}
			}
			break;
		case TAG_ITEM_BEAKER_7:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.rock1(func1,pSender,null,func2);
				}else if(action==ACTION_DO2){
					this.pour3(func1,pSender,func,func2);
				}else if(action==ACTION_DO3){
					this.pour3(func1,pSender,null,func2);
				}
			}
			break;
		case TAG_ITEM_BEAKER_8:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.rock1(func1,pSender,null,func2);
				}else if(action==ACTION_DO2){
					this.pour3(func1,pSender,func,func2);
				}else if(action==ACTION_DO3){
					this.pour3(func1,pSender,null,func2);
				}
			}
			break;
		case TAG_ITEM_BEAKER_9:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.rock1(func1,pSender,null,func2);
				}else if(action==ACTION_DO2){
					this.pour3(func1,pSender,func,func2);
				}else if(action==ACTION_DO3){
					this.pour3(func1,pSender,null,func2);
				}
			}
			break;
		case TAG_ITEM_BEAKER_10:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.rock1(func1,pSender,func,func2);
				}else if(action==ACTION_DO2){
					this.pour3(func1,pSender,func,func2);
				}else if(action==ACTION_DO3){
					this.pour3(func1,pSender,null,func2);
				}
			}
			break;
		case TAG_ITEM_VESSEL:
			this.flow.next();
			this.takeout(action);
			break;
		case TAG_ITEM_BOTTLE1:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.pour(func1,pSender,func2);
				}else if(action==ACTION_DO6){
					this.pour5(func1,pSender,func2);
				}else if(action==ACTION_DO12){
					this.pour6(func1, pSender,func2);
				}else if(action==ACTION_DO10){
					this.pour7(func1,pSender,func2);
				}else{
					this.pour1(func1,action,pSender,func2);
				}
			}
			break;
		case TAG_ITEM_VESSEL7:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO1){
					this.pour4(func1,pSender,null,func2);
				}
			}
			break;
		case TAG_ITEM_VESSEL8:
			if(this.status==true){
				this.status=false;
				if(action==ACTION_DO3){
					this.pour4(func1,pSender,null,func2);
				}else if(action==ACTION_DO4){
					this.pour4(func1,pSender,func,func2);
				}
			}
			break;
		default:
			break;
		}

	},
	rock:function(func1,pSender,func,func2){
		if(pSender.getParent().getTag()==pSender.getTag()){
			pSender=pSender.getParent();
		}
		pSender.setAnchorPoint(cc.p(0.5,0.7));
		var yy = pSender.getPosition().y *1.085;
		pSender.setPositionY(yy);
		var actionArr = [cc.rotateTo(0.1,4.0),cc.rotateTo(0.1,0),cc.rotateTo(0.1,-4),cc.rotateTo(0.1,0)];
		var seq = null;
		var seq_t = cc.sequence(actionArr[0],actionArr[1],actionArr[2],actionArr[3]);
		if(func!=null){
			seq = cc.sequence(cc.repeat(seq_t, 4),cc.delayTime(1),func,func1,cc.delayTime(0.5),func2);
		}else{
			seq = cc.sequence(cc.repeat(seq_t, 4),func1,func2);
		}
		pSender.runAction(seq);
	},
	rock1:function(func1,pSender,func,func2){
		if(pSender.getParent().getTag()==pSender.getTag()){
			pSender=pSender.getParent();
		}
		pSender.setAnchorPoint(cc.p(0.5,0.7));
		var yy = pSender.getPosition().y *1.135;
		pSender.setPositionY(yy);
		var actionArr = [cc.rotateTo(0.1,4.0),cc.rotateTo(0.1,0),cc.rotateTo(0.1,-4),cc.rotateTo(0.1,0)];
		var seq = null;
		var seq_t = cc.sequence(actionArr[0],actionArr[1],actionArr[2],actionArr[3]);
		if(func!=null){
			seq = cc.sequence(cc.repeat(seq_t, 4),cc.delayTime(1),func,func1,cc.delayTime(0.5),func2);
		}else{
			seq = cc.sequence(cc.repeat(seq_t, 4),func1,func2);
		}
		pSender.runAction(seq);
	},
	pour:function(func1,pSender,func2){
		var action1=cc.moveTo(1,cc.p(gg.c_width*1.4, gg.c_height*0.8+245));
		var action2=cc.moveTo(0.5,cc.p(gg.c_width*1.4-70, gg.c_height*0.8+245));
		var action3=cc.rotateTo(0.5,-95.0);
		var action4=cc.rotateTo(0.5,0);
		pSender.runAction(cc.sequence(action1,action2,cc.spawn(action3,cc.callFunc(function(){
			this.beaker1.runAction(cc.sequence(this.runningAction,cc.callFunc(function() {
				this.beaker1.setSpriteFrame("equitment/beaker6.png");
			},this)));
		},this)),action4,func2));
	},
	pour1:function(func1,action,pSender,func2){
		var action1=cc.moveBy(0.5,cc.p(-gg.c_width*0.15,0));
		var action2=cc.rotateTo(0.5,-95.0);
		var action3=cc.rotateTo(0.5,0);
		var action4=cc.moveBy(0.5,cc.p(gg.c_width*0.15,0));
		if(action==ACTION_DO7){
			pSender.runAction(cc.sequence(action4,cc.spawn(action2,cc.callFunc(function() {
				this.beaker7.runAction(this.runningAction);
			},this)),func1,action3,func2));
		}else if(action==ACTION_DO8){
			pSender.runAction(cc.sequence(action4,cc.spawn(action2,cc.callFunc(function() {
				this.beaker8.runAction(this.runningAction);
			},this)),func1,action3,func2));
		}else if(action==ACTION_DO9){
			pSender.runAction(cc.sequence(action4,cc.spawn(action2,cc.callFunc(function() {
				this.beaker9.runAction(this.runningAction);
			},this)),func1,action3,func2));
		}else if(action==ACTION_DO2){
			pSender.runAction(cc.sequence(action1,cc.spawn(action2,cc.callFunc(function() {
				this.beaker2.runAction(this.runningAction);
			}, this)),func1,action3,func2));
		}else if(action==ACTION_DO3){
			pSender.runAction(cc.sequence(action1,cc.spawn(action2,cc.callFunc(function() {
				this.beaker3.runAction(this.runningAction);
			}, this)),func1,action3,func2));
		}else if(action==ACTION_DO4){
			pSender.runAction(cc.sequence(action1,cc.spawn(action2,cc.callFunc(function() {
				this.beaker4.runAction(this.runningAction);
			}, this)),func1,action3,func2));
		}else if(action==ACTION_DO5){
			pSender.runAction(cc.sequence(action1,cc.spawn(action2,cc.callFunc(function() {
				this.beaker5.runAction(this.runningAction);
			}, this)),func1,action3,func2));
		}
	},
	pour3:function(func1,pSender,func,func2){
		if(pSender.getParent().getTag()==pSender.getTag()){
			pSender=pSender.getParent();
		}
		var action1=cc.moveTo(0.5,cc.p(gg.c_width*1.22, gg.c_height*0.62));
		var action2=cc.rotateTo(1,95.0);
		var action3=cc.rotateTo(1,0);
		var action4=cc.moveTo(0.5,pSender.getPosition());
		if(func!=null){
			pSender.runAction(cc.sequence(action1,action2,func1,action3,action4,func,cc.delayTime(0.5),func2));
		}else{
			pSender.runAction(cc.sequence(action1,action2,func1,action3,action4,func2));
		}
	},
	pour4:function(func1,pSender,func,func2){
		var action1=cc.rotateTo(0.5,-95.0);
		var action2=cc.rotateTo(0.5,0);
		if(func!=null){
			pSender.runAction(cc.sequence(cc.callFunc(function() {
				this.line1.setVisible(false);
			},this),this.runningAction1,cc.callFunc(function() {
				this.line1.setVisible(true);
				this.line1.setPosition(this.vessel2.width*0.5,this.vessel2.height*0.15);
			},this),cc.delayTime(1),action2,func,cc.delayTime(0.5),func2));
		}else{
			pSender.runAction(cc.sequence(cc.callFunc(function() {
				this.line.setVisible(false);
				this.line1.setVisible(false);
			},this),this.runningAction1,cc.callFunc(function() {
				this.line1.setVisible(true);
				this.line1.setPosition(this.vessel2.width*0.5,this.vessel2.height*0.15);
			},this),cc.delayTime(1),action2,func2));
		}
	},
	pour5:function(func1,pSender,func2){
		var action1=cc.moveBy(1,cc.p(0, -180));
		var action2=cc.rotateTo(0.5,-95.0);
		var action3=cc.rotateTo(0.5,0);
		pSender.runAction(cc.sequence(action1,cc.spawn(action2,cc.callFunc(function() {
			this.beaker6.runAction(this.runningAction);
		},this)),func1,action3,func2));
	},
	pour6:function(func1,pSender,func2){
		var action1=cc.moveTo(1,cc.p(gg.c_width*1.33, gg.c_height*0.65));
		var action2=cc.rotateTo(0.5,-95.0);
		var action3=cc.rotateTo(0.5,0);
		var action4=cc.moveTo(1, cc.p(gg.c_width*1.4, gg.c_height*0.8));
		var move=cc.moveTo(1,this.vessel2.width*0.5,this.vessel2.height*0.75);
		pSender.runAction(cc.sequence(action1,action2,cc.callFunc(function(){
			this.line1.runAction(move);
		},this),action3,action4,func2));
	},
	pour7:function(func1,pSender,func2){
		var action1=cc.moveBy(0.5,cc.p(-gg.c_width*0.15,0));
		var action2=cc.rotateTo(0.5,-95.0);
		var action3=cc.rotateTo(0.5,0);
		var action4=cc.moveBy(0.5,cc.p(gg.c_width*0.15,0));
		var moveto=cc.moveTo(1,cc.p(gg.c_width*1.4, gg.c_height*0.8));
		pSender.runAction(cc.sequence(action4,cc.spawn(action2,cc.callFunc(function() {
			this.beaker10.runAction(this.runningAction);
		},this)),func1,action3,moveto,func2));
	
	},
	takeout:function(action){
		if(action==ACTION_DO1){
			this.vessel1.setVisible(true);
			this.parent.vessel.setVisible(true);
		}else if(action==ACTION_DO2){
			this.vessel2.setVisible(true);
			this.parent.vessel1.setVisible(true);
		}
	},
	checkActionDone:function(pSender){
		var tag=pSender.getTag();
		var action = this.flow.flow.action;
		if(tag==TAG_ITEM_BOTTLE1){
//			if(action==ACTION_DO1){
//				this.beaker1.setSpriteFrame("beaker6.png");
//			}else 
				if(action==ACTION_DO2){
				this.beaker2.setSpriteFrame("equitment/beaker6.png");
			}else if(action==ACTION_DO3){
				this.beaker3.setSpriteFrame("equitment/beaker6.png");
			}else if(action==ACTION_DO4){
				this.beaker4.setSpriteFrame("equitment/beaker6.png");
			}else if(action==ACTION_DO5){
				this.beaker5.setSpriteFrame("equitment/beaker6.png");
			}else if(action==ACTION_DO6){
				this.beaker6.setSpriteFrame("equitment/beaker6.png");
			}else if(action==ACTION_DO7){
				this.beaker7.setSpriteFrame("equitment/beaker6.png");
			}else if(action==ACTION_DO8){
				this.beaker8.setSpriteFrame("equitment/beaker6.png");
			}else if(action==ACTION_DO9){
				this.beaker9.setSpriteFrame("equitment/beaker6.png");
			}else if(action==ACTION_DO10){
				this.beaker10.setSpriteFrame("equitment/beaker6.png");
			}else if(action==ACTION_DO12){
				this.vessel2.setSpriteFrame("equitment/vessel2.png");
			}
		}else if(tag==TAG_ITEM_BEAKER_1){
			this.beaker1.setOpacity(100);
		}else if(tag==TAG_ITEM_BEAKER_2){
			if(action==ACTION_DO2){
				var move=cc.moveTo(1.5,cc.p(this.vessel2.width*0.5,this.vessel2.height*0.75));
				this.line1.runAction(move);
				this.parent.vessel1.setSpriteFrame("equitment/vessel2.png");
			}
		}else if(tag==TAG_ITEM_BEAKER_3){
			if(action!=ACTION_DO1){
				var move=cc.moveTo(1.5,cc.p(this.vessel2.width*0.5,this.vessel2.height*0.75));
				this.line1.runAction(move);
			}
		}else if(tag==TAG_ITEM_BEAKER_4){
			if(action!==ACTION_DO1){
				var move=cc.moveTo(1.5,cc.p(this.vessel2.width*0.5,this.vessel2.height*0.75));
				this.line1.runAction(move);
			}
		}else if(tag==TAG_ITEM_BEAKER_5){
			if(action!=ACTION_DO1){
				var move=cc.moveTo(1.5,cc.p(this.vessel2.width*0.5,this.vessel2.height*0.75));
				this.line1.runAction(move);
			}
		}else if(tag==TAG_ITEM_BEAKER_6){
			if(action!=ACTION_DO1){
				var move=cc.moveTo(1.5,cc.p(this.vessel2.width*0.5,this.vessel2.height*0.75));
				this.line1.runAction(move);
			}
		}else if(tag==TAG_ITEM_BEAKER_7){
			if(action!=ACTION_DO1){
				var move=cc.moveTo(1.5,cc.p(this.vessel2.width*0.5,this.vessel2.height*0.75));
				this.line1.runAction(move);
			}
		}else if(tag==TAG_ITEM_BEAKER_8){
			if(action!=ACTION_DO1){
				var move=cc.moveTo(1.5,cc.p(this.vessel2.width*0.5,this.vessel2.height*0.75));
				this.line1.runAction(move);
			}
		}else if(tag==TAG_ITEM_BEAKER_9){
			if(action!=ACTION_DO1){
				var move=cc.moveTo(1.5,cc.p(this.vessel2.width*0.5,this.vessel2.height*0.75));
				this.line1.runAction(move);
			}
		}else if(tag==TAG_ITEM_BEAKER_10){
			if(action!=ACTION_DO1){
				var move=cc.moveTo(1.5,cc.p(this.vessel2.width*0.5,this.vessel2.height*0.75));
				this.line1.runAction(move);
			}
		}else if(tag==TAG_ITEM_VESSEL8){
			if(action==ACTION_DO3){
				this.vessel2.setSpriteFrame("equitment/vessel1.png");
			}
		}else if(tag==TAG_ITEM_VESSEL7){
			if(action==ACTION_DO1){
				this.vessel1.setSpriteFrame("equitment/vessel1.png");
			}
		}
	}
});